package com.tiantianyuegou.adapter;

import android.content.Context;
import android.widget.TextView;

import com.trouble.framework.adapter.BaseAdapterHelper;
import com.trouble.framework.adapter.QuickAdapter;
import com.tiantianyuegou.R;
import com.tiantianyuegou.database.SearchHistory;

/**
 * Created by huyang on 2016/1/23 0023.
 */
public class SearchHistoryAdapter extends QuickAdapter<SearchHistory>{
    public SearchHistoryAdapter(Context context) {
        super(context, R.layout.listitem_history);
    }

    @Override
    protected void convert(BaseAdapterHelper helper, SearchHistory item) {
        TextView text = helper.getView(android.R.id.text1);
        text.setText(item.content);
    }
}
